package chpt01;

import java.util.Scanner;

public class BinaryLeadingZeros {

	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		int n=1;
		while(in.hasNextInt()){
			int x=in.nextInt();
			if(x<0){
				System.out.println("0");
			}
			else if(x==0){
				System.out.println("32");
			}
			else{
				while(x/2!=0){
					x/=2;
					n++;
				}
				System.out.println(32-n);
			}
		}
		in.close();
	}

}
